package request

import (
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterWorkcardSigninRequest struct {
	/*
	   核销单外部id     */
	OuterId *string `json:"outer_id,omitempty" required:"false" `
	/*
	   工单id     */
	WorkcardId *int64 `json:"workcard_id,omitempty" required:"false" `
	/*
	   核销单id     */
	FulfilTaskId *int64 `json:"fulfil_task_id,omitempty" required:"false" `
	/*
	   图片地址回传集合     */
	PicUrls *[]string `json:"pic_urls,omitempty" required:"false" `
}

func (s *TmallServicecenterWorkcardSigninRequest) SetOuterId(v string) *TmallServicecenterWorkcardSigninRequest {
	s.OuterId = &v
	return s
}
func (s *TmallServicecenterWorkcardSigninRequest) SetWorkcardId(v int64) *TmallServicecenterWorkcardSigninRequest {
	s.WorkcardId = &v
	return s
}
func (s *TmallServicecenterWorkcardSigninRequest) SetFulfilTaskId(v int64) *TmallServicecenterWorkcardSigninRequest {
	s.FulfilTaskId = &v
	return s
}
func (s *TmallServicecenterWorkcardSigninRequest) SetPicUrls(v []string) *TmallServicecenterWorkcardSigninRequest {
	s.PicUrls = &v
	return s
}

func (req *TmallServicecenterWorkcardSigninRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.OuterId != nil {
		paramMap["outer_id"] = *req.OuterId
	}
	if req.WorkcardId != nil {
		paramMap["workcard_id"] = *req.WorkcardId
	}
	if req.FulfilTaskId != nil {
		paramMap["fulfil_task_id"] = *req.FulfilTaskId
	}
	if req.PicUrls != nil {
		paramMap["pic_urls"] = util.ConvertBasicList(*req.PicUrls)
	}
	return paramMap
}

func (req *TmallServicecenterWorkcardSigninRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
